package com.hqyj.ssm_project.mapper;

import com.hqyj.ssm_project.pojo.Role;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer roleId);

    int insert(Role row);

    int insertSelective(Role row);

    Role selectByPrimaryKey(Integer roleId);

    int updateByPrimaryKeySelective(Role row);

    int updateByPrimaryKey(Role row);

    List<Role> selectAllRole();
    void deleteFromRole_Function(Integer id);

    List<Role> selectRoleAndUser();

    Role selectRoleByRoleName(String superRoleName);
}